pkgdir = @PURPLE_PLUGINDIR@

EXTRA_DIST = \
	account.c \
	account.h \
	Makefile.mingw

GGSOURCES = \
	avatar.c \
	avatar.h \
	blist.c \
	blist.h \
	chat.c \
	chat.h \
	edisc.c \
	edisc.h \
	gg.c \
	gg.h \
	html.c \
	html.h \
	image-prpl.c \
	image-prpl.h \
	keymapper.c \
	keymapper.h \
	libgadu-events.c \
	libgadu-events.h \
	libgaduw.c \
	libgaduw.h \
	message-prpl.c \
	message-prpl.h \
	multilogon.c \
	multilogon.h \
	pubdir-prpl.c \
	pubdir-prpl.h \
	purplew.c \
	purplew.h \
	resolver-purple.c \
	resolver-purple.h \
	roster.c \
	roster.h \
	servconn.c \
	servconn.h \
	status.c \
	status.h \
	tcpsocket.c \
	tcpsocket.h \
	utils.c \
	utils.h \
	validator.c \
	validator.h \
	xml.c \
	xml.h \
	oauth/oauth.c \
	oauth/oauth.h \
	oauth/oauth-parameter.c \
	oauth/oauth-parameter.h \
	oauth/oauth-purple.c \
	oauth/oauth-purple.h

AM_CFLAGS = $(st)

libgg_la_LDFLAGS = -module @PLUGIN_LDFLAGS@

if STATIC_GG

st = -DPURPLE_STATIC_PRPL
noinst_LTLIBRARIES = libgg.la
libgg_la_SOURCES = $(GGSOURCES)
libgg_la_CFLAGS  = $(AM_CFLAGS)

else

st =
pkg_LTLIBRARIES = libgg.la
libgg_la_SOURCES = $(GGSOURCES)

endif

libgg_la_LIBADD  = @PURPLE_LIBS@ $(LIBGADU_LIBS) $(JSON_LIBS)

AM_CPPFLAGS = \
	-I$(top_srcdir)/libpurple \
	-I$(top_builddir)/libpurple \
	$(LIBGADU_CFLAGS) \
	$(GLIB_CFLAGS) \
	$(JSON_CFLAGS) \
	$(GPLUGIN_CFLAGS) \
	$(DEBUG_CFLAGS)
